package polymorphic.homework1;

public class Eagle extends Animal {
    public Eagle() {
    }

    public Eagle(String name) {
        super(name);
    }

    public void hunt(){
        System.out.println(this.getName()+"正在空中飞翔捕食……");
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"正在吃肉……");
    }

    @Override
    public void cry() {
        System.out.println(this.getName()+"正在尖叫……");
    }
}
